import yaml


# 读数据
def analyze_file(file_name, case_name):
    with open("./data/%s.yaml" % file_name, "r", encoding="utf-8") as f:
        # 读取出所有的数据
        data = yaml.load(f, Loader=yaml.FullLoader)
        # 读取数某条case的数据了
        case_data = data[case_name].values()
        return case_data